const global = getApp().globalData;
const wxApi = global.wxApi;
Component({
  data: {
    hasUnread: false
  },
  properties: {
    opacity: {
      type: null,
      value: 0
    },
    show: {
      type: Boolean,
      value: true
    },
    unread: {
      type: Boolean,
      value: false
    }
  },
  attached() {
    
  },
  methods: {
    onSearch() {
      wxApi.navigateTo('../search/search');
    },
    onMessage() {
      wxApi.navigateTo('../messages/messages');
    }
  }
})